﻿
@SET TEMPLATEDIR="c:\program files\common files\microsoft shared\web server extensions\12\Template"
@SET STSADM="c:\program files\common files\microsoft shared\web server extensions\12\bin\stsadm"
@SET WSPPBUILDER="WspBuilder\WspBuilder.exe"

@echo off
Echo Creating Solution Package
%WSPPBUILDER% -outputpath solution

Echo Retracting Solution
stsadm -o retractsolution -name Winsmarts.WCFSupport.wsp -immediate
stsadm -o execadmsvcjobs

Echo Deleting Solution
stsadm -o deletesolution -name Winsmarts.WCFSupport.wsp

Echo Adding Solution
stsadm -o addsolution -filename Solution\Winsmarts.WCFSupport.wsp

Echo Deploying solution
stsadm -o deploysolution -name Winsmarts.WCFSupport.wsp -immediate -allowGacDeployment -force
stsadm -o execadmsvcjobs

Echo recycling AppPool   --- YOU NEED TO UN-REM THIS! Change it to IISReset if necessary!!
REM %windir%\system32\inetsrv\appcmd recycle AppPool SPAppPool
REM IISRESET
